package com.kuanter.kuanterauto.utils;

import android.app.ProgressDialog;
import android.content.Context;
import android.view.Window;

public class ViewUtils {
	ProgressDialog progressDialog;

	public void showProgress(String message,Context context) {
		progressDialog = new ProgressDialog(context);
		progressDialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
		progressDialog.setMessage(message);
		progressDialog.show();
	}
	
	/**
	 * 结束进度框
	 * 
	 * @param progress
	 */
	public void finishProgress() {
		if (progressDialog != null) {
			progressDialog.dismiss();
			progressDialog=null;
		}
	}
}
